//
//  ClassFrameModel.m
//  ChunLaiZhuangClient
//
//  Created by zouzhisheng on 16/3/2.
//  Copyright © 2016年 CLZ. All rights reserved.
//

#import "ClassFrameModel.h"

@implementation ClassFrameModel
-(void)setDataModel:(ClassDataModel *)dataModel{
    _dataModel=dataModel;
    self.imageHeight=105;
    int lineNum=0;
    if (dataModel.classArray.count%4==0) {
        lineNum=dataModel.classArray.count/4;
    }else{
        lineNum=dataModel.classArray.count/4+1;
    }
    self.textHeight=33*lineNum+20;
    self.cellHeight=self.imageHeight+self.textHeight+8;

}
@end
